package com.eissu.service.impl;

import com.eissu.service.UserService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author eissu
 * @date 2020/5/31 22:02
 * @descript
 */
@Component
@Service(interfaceName = "userService")
public class UserServiceImpl implements UserService {

    @Value("${dubbo.application.name}")
    private String serviceName;

    @Override
    public String sayHello(String name) {
        System.err.println("dubbo.application.name:" + serviceName);
        return "hello:" + name;
    }
}
